package com.coocaa.ops.admin.v1.plugin.mapper;

import com.coocaa.ops.common.core.base.mapper.IBaseMapper;
import com.coocaa.ops.common.core.biz.plugin.entity.PluginInfoEntity;
import org.apache.ibatis.annotations.Param;

/**
 * @author tangminghong
 * @date 2020-07-15
 */
public interface IPluginInfoMapper extends IBaseMapper<PluginInfoEntity> {

    /**
     * 根据板块id和版本更新板块关联的插件id
     * @param panelId
     * @param panelVersion
     * @param pluginSelfId
     */
    void updatePanelPluginId(@Param("panelId") Integer panelId, @Param("panelVersion") Integer panelVersion, @Param("pluginSelfId") Integer pluginSelfId);

    void updateTabPluginId(@Param("tabId") Integer tabId, @Param("tabVersion") Integer tabVersion, @Param("pluginSelfId") Integer pluginSelfId);

}
